#!/bin/bash

BRANCH=$1
[ -z "$BRANCH" ] && {
	echo "need branch name"
	exit 1
}

git checkout -b $BRANCH origin/$BRANCH
git push origin --delete $BRANCH
git checkout -
git branch -D $BRANCH
